<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        *{
            margin: 0;
            padding: 0;
        }
        .box {
            width: 1366px;
            height: 600px;
            margin: 0 auto;
            background: url('./images/8e52a2702bb302328293393233c6018.jpg');
            /* 超出盒子的部分被隐藏 */
            overflow: hidden;
            margin-top: 100px;
        }
        #hy{
            display:block;
            width: 683px;
            height: 100%;
            transition: all .5s;
            margin-left: 683px;
            margin-top: -600px;
        }
        #lzc{
            display:block;
            width: 683px;
            height: 600px;
            transition: all .5s;
        }
        .box:hover #hy{
            transform: translate(100%);
        }
        .box:hover #lzc{
            transform: translate(-100%);
        }
    </style>
</head>
<body>
    <div class="box">   
        <img src="./images/9511c28ada4d8fa1f864d1ce3b61d56.jpg" alt="" id="lzc">
        <img src="./images/38ae53471dd141d5e3f96881cee1d2f.jpg" alt="" id="hy">
    </div>
</body>
</html>
